package com.hmz.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "chat_room")
public class ChatRoom {
    @TableId(type = IdType.AUTO)
    private int id; //聊天室Id
    @TableField(value = "create_time")
    private Date time; //创建时间
    @TableField(value = "chat_room_name")
    private String chatRoomName; //聊天室名称
    private String avatar; //聊天室头像
    private int num; //聊天室成员数量
}
